extern "C"

#include <math.h>
#include <cuComplex.h>
__global__ void floor_double(int n,int idx,double *dy,int incy,double *result) {
           for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; i += blockDim.x * gridDim.x) {
                          if(i >= idx && i % incy == 0)
                              result[i] =  floor(dy[i]);
            }

    }
